const Mock = require('mockjs')

module.exports = function (req) {
  const result = Mock.mock({
    'list|1-10': [
      {
        id: '@id()', // 随机id
        'human1|100-500': 500,
        'human2|100-500': 500,
        'human3|100-500': 500,
        amount: 600,
        time: '@date()', // 随机日期
      },
    ],
  })
  return {
    result: result,
    error: null,
    success: true,
    code: '10000',
    datetime: Date.now(),
  }
}
